﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
namespace RATSharp.Model
{
    /// <summary>
    /// Model for object.
    /// </summary>
    /// 
    [DataContract]
    public class Object
    {
        /// <summary>
        /// Object id
        /// </summary>
        [DataMember]
        public int id { get; set; }
        /// <summary>
        /// Object description
        /// </summary>
        [DataMember]
        public string description { get; set; }
        /// <summary>
        /// Object identifier
        /// </summary>
        [DataMember]
        public string identifier { get; set; }
        /// <summary>
        /// Object name
        /// </summary>
        [DataMember]
        public string name { get; set; }
        /// <summary>
        /// Object class name
        /// </summary>
        [DataMember]
        public string objectClassName { get; set; }
        /// <summary>
        /// object class id
        /// </summary>
        [DataMember]
        public int objectClassId { get; set; }
        [DataMember]
        public bool pickable { get; set; }
        [DataMember]
        public bool returnable { get; set; }
        [DataMember]
        public bool favourite { get; set; }


        /// <summary>
        /// overriden for properties visibility
        /// </summary>
        /// <returns>string representation</returns>
        public override string ToString()
        {
            return String.Format("Id: {0}, Name: {1}, Description: {2}, ObjectClassName{3}", id, name, description, objectClassName);
        }
    }
}
